import request from '@/utils/request'

export function getPlcByDeviceId(id) {
    return request({
      url: '/fj/plc_param/getPlcParams/'+id,
      method: 'get',
    //   params: query
    })
  }
export function addPlc(data){
    return request({
      url: '/fj/plc_param',
      method: 'post',
      data: data
    })
}

export function updatePlc(data){
  return request({
    url: '/fj/plc_param',
    method: 'put',
    data: data
  })
}
export function delPlcById(id) {
  return request({
    url: '/fj/plc_param/'+id,
    method: 'delete',
  //   params: query
  })
}